package mx.edu.ittoluca.fp;

/**
 * Created with IntelliJ IDEA.
 * User: Victor Santillán
 * Date: 26/06/12
 * Time: 11:22 PM
 */
public class Pair<KeyType, ValueType> {

    private KeyType first;
    private ValueType second;

    public Pair(KeyType firstElement, ValueType secondElement) {
        first = firstElement;
        second = secondElement;
    }

    public KeyType getFirst() { return first; }

    public ValueType getSecond() { return second; }

    @Override
    public String toString(){ return "(" + first + second + ")"; }
}
